<template>
  <div class="list">
    <div class="box">
      <div class="company-name">
        {{ detail.company_name }}
      </div>
      <div>
        <el-tag class="r5" type="success">{{ detail.status }}</el-tag>
      </div>
      <industry :detail="detail" />
    </div>
  </div>
</template>

<script>
// import Breadcrumb from "@/components/breadcrumb/index"
import Industry from "./components/Industry"
import { show } from "@/api/merchants/merchants"

export default {
  components: {
    // Breadcrumb
    Industry // 工商信息
  },
  data() {
    return {
      detail: []
    }
  },
  created() {
    this.getDetail(this.$route.query.id)
  },
  methods: {
    // 工商详情
    getDetail(id) {
      show({ company_id: id }, response => {
        this.detail = response.data
      })
    }
  }
}
</script>

<style lang="scss" scoped>
@import "@/styles/portrait/portrait/detail";
</style>
